home *** CD-ROM | disk | FTP | other *** search
/ Champak 112 / jogo-disk-112.iso / Games / ophelias_diary_2_episode_2.swf / scripts / DefineButton2_1865 / BUTTONCONDACTION on(release).as
Text File  |  2010-07-14  |  534b  |  24 lines

  1. on(release){
  2.    tellTarget("Bouton2")
  3.    {
  4.       play();
  5.    }
  6.    if(eval("/Variables:Braker") == 1)
  7.    {
  8.       if(eval("/Variables:Bouton2") == 0)
  9.       {
  10.          set("/Variables:Bouton2",1);
  11.          set("/Variables:NbBoutons",eval("/Variables:NbBoutons") + 1);
  12.          if(3 < eval("/Variables:NbBoutons"))
  13.          {
  14.             gotoAndPlay(2);
  15.          }
  16.       }
  17.       else
  18.       {
  19.          set("/Variables:Bouton2",0);
  20.          set("/Variables:NbBoutons",eval("/Variables:NbBoutons") - 1);
  21.       }
  22.    }
  23. }
  24.